<template>
    <div class="header">
        <div class="headerBox">
            <span class="header_reture"> <img src="../../assets/img/public/reture_black.png" alt=""> </span>
            <!-- <div></div> -->
            <span class="header_rule">
                <span @click="getrules">规则</span>
                <!-- <span>规则</span> -->
            </span>
        </div>
            <div class="rule" v-if="rule_on">
            <div class="rule_box">
                <div>
                   <h5>规则说明</h5>
                    <p>asdsadsdsada000zxczxczxczxczxcadsdsada000zxczxczxczxczxcadsdsada000zxczxczxczxczxcadsdsada000zxczxczxczxczxcadsdsada000zxczxczxczxczxcadsdsada000zxczxczxczxczxcadsdsada000zxczxczxczxczxcadsdsada000zxczxczxczxczxcadsdsada000zxczxczxczxczxcadsdsada000zxczxczxczxczxcadsdsada000zxczxczxczxczxcadsdsada000zxczxczxczxczxcadsdsada000zxczxczxczxczxcadsdsada000zxczxczxczxczxcadsdsada000zxczxczxczxczxcadsdsada000zxczxczxczxczxcadsdsada000zxczxczxczxczxcadsdsada000zxczxczxczxczxcadsdsada000zxczxczxczxczxcadsdsada000zxczxczxczxczxcadsdsada000zxczxczxczxczxcadsdsada000zxczxczxczxczxcadsdsada000zxczxczxczxczxcadsdsada000zxczxczxczxczxcadsdsada000zxczxczxczxczxcadsdsada000zxczxczxczxczxcadsdsada000zxczxczxczxczxcadsdsada000zxczxczxczxczxcadsdsada000zxczxczxczxczxcadsdsada000zxczxczxczxczxcadsdsada000zxczxczxczxczxcadsdsada000zxczxczxczxczxcadsdsada000zxczxczxczxczxcadsdsada000zxczxczxczxczxcadsdsada000zxczxczxczxczxcadsdsada000zxczxczxczxczxcadsdsada000zxczxczxczxczxcadsdsada000zxczxczxczxczxcadsdsada000zxczxczxczxczxczxczxczxczxc00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd00000000000000sdsadasdddadaadsdassadsa789</p>
                </div>
                <div class="close"  @click="close">我知道了</div>
            </div>
        </div>
    </div>
</template>

<script>
    export default {
        data(){
            return{
                rule_on:false
            }
        },
        methods:{
            //规则
            getrules(){
                this.rule_on = !this.rule_on
                this.$nextTick(() => {
                    document.querySelector('body').setAttribute('style', 'position:fixed')
                    // document.querySelector('html').setAttribute('style', 'overflow:hidden')
                })
                
            },
            close(){
                this.rule_on = !this.rule_on
                 this.$nextTick(() => {
                    document.querySelector('body').setAttribute('style', 'overflow:auto')
                    // document.querySelector('html').setAttribute('style', 'overflow:auto')
                })
            },
        }
    }
</script>

<style lang="scss" scoped>
@import "../../assets/css/common/Header.scss"
</style>